import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import Vuex from 'vuex'

import './mock/mock'
import uView from "./uni_modules/uview-ui";
import './uni_modules/uview-ui/index.scss'

import store from '@/store'


Vue.use(uView);
// 使用插件
Vue.use(Vuex)

Vue.config.productionTip = false

Vue.prototype.$baseURL =  uni.getStorageSync('baseUrl')? uni.getStorageSync('baseUrl'):''

const systemInfo = uni.getSystemInfoSync();
let statusBarHeight = systemInfo.statusBarHeight;
Vue.prototype.$globalMap = {
  statusBarHeight,
}


App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif